package com.wenwei.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/8/31.
 */
public class MessageListBean implements Serializable{


    /**
     * timestamp : 1505204474775
     * code : 200
     * message : data success
     * path : http://localhost:8080/profile/getMessages
     * method : GET
     * total : 2
     * total_page : 1
     * now_page : 1
     * page_size : 2
     * per_total : 10
     * data : [{"id":2,"messageId":2,"userId":1,"state":1,"sbMessage":{"id":2,"title":"1231231","content":"3213213","state":0,"createdTime":1505030939000},"createdTime":1505030939000,"updatedTime":1505204473673,"deletedTime":null},{"id":1,"messageId":1,"userId":1,"state":1,"sbMessage":{"id":1,"title":"共享家庭设备，立马获取￥100","content":"消息的内容,贡献大家的闲置用品，好玩有好耍","state":0,"createdTime":1504885624000},"createdTime":1504885624000,"updatedTime":1505204474226,"deletedTime":null}]
     */

    private long timestamp;
    private int code;
    private String message;
    private String path;
    private String method;
    private int total;
    private int total_page;
    private int now_page;
    private int page_size;
    private int per_total;
    private List<DataBean> data;

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getTotal_page() {
        return total_page;
    }

    public void setTotal_page(int total_page) {
        this.total_page = total_page;
    }

    public int getNow_page() {
        return now_page;
    }

    public void setNow_page(int now_page) {
        this.now_page = now_page;
    }

    public int getPage_size() {
        return page_size;
    }

    public void setPage_size(int page_size) {
        this.page_size = page_size;
    }

    public int getPer_total() {
        return per_total;
    }

    public void setPer_total(int per_total) {
        this.per_total = per_total;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{

        private long times;
        private int id;
        private String title;
        private int status;
        private String content;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public long getTimes() {
            return times;
        }

        public void setTimes(long times) {
            this.times = times;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }
}
